Variables are used to store data:

<html>
<body>

<script type="text/javascript">
var [...] = "Hege"
document.write(name)
document.write("<h1>"+name+"</h1>")
</script>